# -- coding: utf-8 -- 
# Author: Yxuan
# Name: 04app.py

from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
    return 'hello my world'

def user_login():
    def inner():
        print("logion")
        func()
        return inner()

@user_login
def news():
    print("this is news page")
news()

if __name__ == '__main__':
    app.run(debug=True)




